/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package models.beans;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.apache.struts.upload.FormFile;


/**
 *
 * @author Group 3 Aprotrain Aptech  Group3 Aprotrain Aptech
 */
public class Courses extends org.apache.struts.action.ActionForm {
    
    private int coursesId;
    private String coursesName;
    private String description;
    private String attachment;
    private String dateStart;
    private String dateEnd;
    private FormFile theFile;
    private List<CoursesBean> courses;

    public FormFile getTheFile() {
        return theFile;
    }

    public void setTheFile(FormFile theFile) {
        this.theFile = theFile;
    }

    public List<CoursesBean> getCourses() {
        return courses;
    }

    public void setCourses(List<CoursesBean> courses) {
        this.courses = courses;
    }
    
public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public int getCoursesId() {
        return coursesId;
    }

    public void setCoursesId(int coursesId) {
        this.coursesId = coursesId;
    }

    public String getCoursesName() {
        return coursesName;
    }

    public void setCoursesName(String coursesName) {
        this.coursesName = coursesName;
    }

    public String getDateEnd() {
        return dateEnd;
    }

    public void setDateEnd(String dateEnd) throws ParseException {
        this.dateEnd = dateEnd;
    }

    public String getDateStart() {
        return dateStart;
    }

    public void setDateStart(String dateStart) throws ParseException {
        this.dateStart = dateStart;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    
    public Courses() {
        super();
        this.coursesId = 0;
        this.coursesName = "";
        this.description = "";
        this.attachment = "";
        this.dateStart = "10/10/2010";
        this.dateEnd = "20/10/2010";
    }
}
